//
//  DYHealthTestViewController.m
//  DYHospital
//
//  Created by 胡金东 on 16/3/26.
//  Copyright © 2016年 胡金东. All rights reserved.
//

#import "DYHealthTestViewController.h"

@interface DYHealthTestViewController ()<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic,strong) UITableView *healthTestTV;

@end

@implementation DYHealthTestViewController

-(void)viewWillAppear:(BOOL)animated
{
    UIBarButtonItem *backBtnItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"back_Arrow"] style:UIBarButtonItemStylePlain target:self action:@selector(backBtnItemClick)];
    backBtnItem.tintColor = [UIColor blackColor];
    self.navigationItem.leftBarButtonItem = backBtnItem;
}
-(void)backBtnItemClick
{
    [self.navigationController popViewControllerAnimated:YES];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"健康自测";
    [self setHealthTestTV];
}

-(void)setHealthTestTV
{
    self.healthTestTV = [[UITableView alloc]initWithFrame:CGRectZero style:UITableViewStylePlain];
    self.healthTestTV.delegate = self;
    self.healthTestTV.dataSource = self;
    self.healthTestTV.showsVerticalScrollIndicator = NO;
    self.healthTestTV.showsHorizontalScrollIndicator = NO;
//    self.healthTestTV.tableFooterView = [[UIView alloc]init];
    self.healthTestTV.separatorColor = [UIColor colorWithRed:52.0f/255.0f green:53.0f/255.0f blue:61.0f/255.0f alpha:0.7];
    [self.view addSubview:self.healthTestTV];
}

-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 5;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *identifier = @"cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (cell == nil) {
        cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
    }
    
    return cell;
}

@end
